home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 573 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  601 b 

  1. Path: news.ais.net!usenet
  2. From: joshez@ais.net (Joe)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: atoi
  5. Date: 7 Jan 1996 05:12:32 GMT
  6. Organization: American Information Systems, Inc.
  7. Message-ID: <4cnko0$3u3@news.ais.net>
  8. References: <4cl55i$5bc@news-e2a.gnn.com>
  9. NNTP-Posting-Host: sch-host18.dialup.ais.net
  10. X-Newsreader: WinVN 0.92.2
  11.  
  12.  
  13. >i know its a dumb question but i really just dont understand
  14. >this function.
  15.  
  16. Follow this:
  17.  
  18. int  number           ;
  19. char string[4] = "123";
  20.  
  21. ...
  22. ...
  23. ...
  24.  
  25. number = atoi(string);
  26.  
  27.  
  28. String "123" is now integer that can be mathematicaly manipulated.
  29.  
  30. That's all to it.
  31.  
  32. --joe
  33.